home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / cagd_lib / makefile.sas < prev    next >
Encoding:
Makefile  |  1993-12-30  |  5.2 KB  |  175 lines

  1. #
  2. # This is the make file for the cagd_lib library.
  3. #
  4. #                Gershon Elber, Aug 1990
  5. #
  6.  
  7. #-----
  8. #
  9. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  10. # is sourced from several directories relative path specification will
  11. # be simple wrong.
  12. #
  13.  
  14. SRC_DIR = Work:T/Irit
  15. #
  16. # All libraries created will be installed into the LIB_DIR directory.
  17. #
  18. LIB_DIR = $(SRC_DIR)/lib
  19.  
  20. #
  21. # All includes files associated with the installed libraries will be
  22. # installed into the INC_DIR directory.
  23. #
  24. INC_DIR = $(SRC_DIR)/inc
  25.  
  26. #
  27. # All binaries created will be installed into the BIN_DIR directory.
  28. #
  29. BIN_DIR = $(SRC_DIR)/bin
  30.  
  31. #
  32. # Uncomment the correct set of variables to be used or modify it for
  33. # your system.
  34. #
  35. # -D flags:
  36. #
  37. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  38. #
  39. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  40. #    be used.
  41. #
  42. #  Emulation to the following function are available by defining the
  43. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  44. # -DGETCWD - if getcwd is not defined in this system.
  45. # -DSTRSTR - if strstr is not defined in this system.
  46. # -DSTRDUP - if strdup is not defined in this system.
  47. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  48. #
  49. # -DTIMES - if times is defined in your system, otherwise uses time.
  50. #
  51. # -DRAND - if the (s)rand random number generator exists.
  52. # -DRAND48 - ?rand48 random number generators exists.
  53. #    If non of RAND or RAND48 are defined, (s)random is used.
  54. #
  55. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  56. #
  57. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  58. #    varargs.h.
  59. #
  60. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  61. #
  62. # -DGRAPDRVS - any combination of of 'amidrvs', 'nuldrvs'.
  63. #
  64. # Other, possibly useful defines (for c code development):
  65. #
  66. # -DDEBUG - for some debugging functions in the code (that can be invoked
  67. #        from a debugger).
  68. #
  69.  
  70. #
  71. # Flags for Amiga using SAS/C
  72. #
  73. # Use DEFINE=M68881 if you have a 68881/68882/68040
  74. # Use DEFINE=MIEEE if you want to use the IEEE math library
  75. # Use DEFINE=MFFP if you want to use the FFP math library
  76. #
  77. CC = sc
  78. DFLAGS = DEFINE=M68881 DEFINE=RAND48
  79. CFLAGS = $(DFLAGS) CPU=68040 MATH=68882 NOSTACKCHECK STRMERGE IGNORE=79
  80. MORELIBS = 
  81. GRAPDRVS =nuldrvs amidrvs
  82.  
  83. #
  84. # Default rule for compilation.
  85. #
  86. .c.o:
  87.     $(CC) $(CFLAGS) IDIR= IDIR=$(INC_DIR) IDIR=$(SRC_DIR)/amigalib $<
  88.  
  89. #
  90. # All libraries.
  91. LIBS = $(LIB_DIR)/geom.lib $(LIB_DIR)/prsr.lib $(LIB_DIR)/cagd.lib\
  92.        $(LIB_DIR)/misc.lib #$(LIB_DIR)/gif.lib
  93. #-----
  94.  
  95. OBJS =  afd_cube.o bsp2poly.o bspboehm.o bspcoxdb.o bsp_gen.o \
  96.     bsp_knot.o bsp_read.o bsp_sym.o bsp_wrt.o bzr_gen.o bzr_read.o \
  97.     bzr_sym.o bzr2poly.o bzr_wrt.o cagd_aux.o cagd_arc.o \
  98.     cagdaiso.o cagdalen.o cagdbbox.o cagdbsum.o cagdcoer.o \
  99.     cagdcmps.o cagdcmpt.o cagdcmrg.o \
  100.     cagdcrvt.o cagdcsrf.o cagddist.o cagdedit.o cagdextr.o cagdmesh.o \
  101.     cagdmorp.o cagdofst.o cagdoslo.o cagdpoly.o cagdpris.o \
  102.     cagdread.o cagdruld.o cagdsmrg.o \
  103.     cagdsrev.o cagdswep.o cagdzero.o cagd_dbg.o cagd_err.o cagd_ftl.o \
  104.     cagd_gen.o cagd_sym.o cagd_tkn.o cagd_wrt.o \
  105.     cbspeval.o cbsp_aux.o cbzreval.o cbzr_aux.o cbzr_pwr.o \
  106.     mshplanr.o sbspeval.o sbsp_aux.o sbzr_aux.o sbzreval.o
  107.  
  108.  
  109. cagd.lib: $(OBJS)
  110.     oml cagd.lib r @build.sas
  111.  
  112. install: cagd.lib
  113.     Copy CLONE cagd.lib $(LIB_DIR)
  114.     Delete cagd.lib
  115.     Copy cagd_lib.h $(INC_DIR)
  116.  
  117. # Dependencies starts here - do not touch, generated automatically.
  118. afd_cube.o:    cagd_loc.h cagd_lib.h
  119. bsp2poly.o:    cagd_loc.h cagd_lib.h
  120. bsp_gen.o:    cagd_loc.h cagd_lib.h
  121. bsp_knot.o:    cagd_loc.h cagd_lib.h
  122. bsp_read.o:    cagd_loc.h cagd_lib.h
  123. bsp_sym.o:    cagd_loc.h cagd_lib.h
  124. bsp_wrt.o:    cagd_loc.h cagd_lib.h
  125. bspboehm.o:    cagd_loc.h cagd_lib.h
  126. bspcoxdb.o:    cagd_loc.h cagd_lib.h
  127. bzr2poly.o:    cagd_loc.h cagd_lib.h
  128. bzr_gen.o:    cagd_loc.h cagd_lib.h
  129. bzr_read.o:    cagd_loc.h cagd_lib.h
  130. bzr_sym.o:    cagd_loc.h cagd_lib.h
  131. bzr_wrt.o:    cagd_loc.h cagd_lib.h
  132. cagd_arc.o:    cagd_loc.h cagd_lib.h
  133. cagd_aux.o:    cagd_loc.h cagd_lib.h
  134. cagd_dbg.o:    cagd_loc.h cagd_lib.h
  135. cagd_err.o:    cagd_loc.h cagd_lib.h
  136. cagd_ftl.o:    cagd_lib.h
  137. cagd_gen.o:    cagd_loc.h cagd_lib.h
  138. cagd_sym.o:    cagd_loc.h cagd_lib.h
  139. cagd_tkn.o:    cagd_loc.h cagd_lib.h
  140. cagd_wrt.o:    cagd_loc.h cagd_lib.h
  141. cagdaiso.o:    cagd_loc.h cagd_lib.h
  142. cagdalen.o:    cagd_loc.h cagd_lib.h
  143. cagdbbox.o:    cagd_loc.h cagd_lib.h
  144. cagdbsum.o:    cagd_loc.h cagd_lib.h
  145. cagdcmps.o:    cagd_loc.h cagd_lib.h
  146. cagdcmpt.o:    cagd_loc.h cagd_lib.h
  147. cagdcmrg.o:    cagd_loc.h cagd_lib.h
  148. cagdcoer.o:    cagd_loc.h cagd_lib.h
  149. cagdcrvt.o:    cagd_loc.h cagd_lib.h
  150. cagdcsrf.o:    cagd_loc.h cagd_lib.h
  151. cagddist.o:    cagd_loc.h cagd_lib.h
  152. cagdedit.o:    cagd_loc.h cagd_lib.h
  153. cagdextr.o:    cagd_loc.h cagd_lib.h
  154. cagdmesh.o:    cagd_loc.h cagd_lib.h
  155. cagdmorp.o:    cagd_loc.h cagd_lib.h
  156. cagdofst.o:    cagd_loc.h cagd_lib.h
  157. cagdpoly.o:    cagd_loc.h cagd_lib.h
  158. cagdpris.o:    cagd_loc.h cagd_lib.h
  159. cagdread.o:    cagd_loc.h cagd_lib.h
  160. cagdruld.o:    cagd_loc.h cagd_lib.h
  161. cagdsmrg.o:    cagd_loc.h cagd_lib.h
  162. cagdsrev.o:    cagd_loc.h cagd_lib.h
  163. cagdswep.o:    cagd_loc.h cagd_lib.h
  164. cagdzero.o:    cagd_loc.h cagd_lib.h
  165. cbsp_aux.o:    cagd_loc.h cagd_lib.h
  166. cbspeval.o:    cagd_loc.h cagd_lib.h
  167. cbzr_aux.o:    cagd_loc.h cagd_lib.h
  168. cbzr_pwr.o:    cagd_loc.h cagd_lib.h
  169. cbzreval.o:    cagd_loc.h cagd_lib.h
  170. mshplanr.o:    cagd_loc.h cagd_lib.h
  171. sbsp_aux.o:    cagd_loc.h cagd_lib.h
  172. sbspeval.o:    cagd_loc.h cagd_lib.h
  173. sbzr_aux.o:    cagd_loc.h cagd_lib.h
  174. sbzreval.o:    cagd_loc.h cagd_lib.h
  175.